﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="Ornament.Web" %>
<%
    if (Request.IsAuthenticated && HttpContext.Current.User != null && OrnamentContext.Current.CurrentUser != null)
    {
%>
<%=Resources.MemberShip.Welcone%>,<%=Html.Encode(OrnamentContext.Current.CurrentUser.Name)%><a
    href="<%=Url.Action("Info","Account", new {area=""}) %>"><%=Resources.MemberShip.AccountInfo %></a>
| <a href="<%=Url.Action("LogOff","Account",new{area=""})%>" title="<%=Html.GetResourceString("LogoutTitle") %>"
    id="logout">
    <%=Resources.MemberShip.Logout%></a>
<hr style="margin: 0px 0; width: 100%" />
<%=Resources.MemberShip.LastLoginTime%>：
<%=OrnamentContext.Current.CurrentUser!=null?OrnamentContext.Current.CurrentUser.LastActivityDate.ToString():""%>
<%
    }
    
%>
<script type="text/javascript" language="javascript">
    $("#logout").click(function () {
        return confirm("<%=Resources.MemberShip.LogoutWarning%>");
    });
</script>
